Release 10.1A: OpenEdge Data Management:
SQL Reference


LEFT

Returns the leftmost count of characters of string_exp.

Syntax

LEFT ( string_exp , count ) 

Example

The following example shows how to use the LEFT function:

SELECT LEFT(last_name,4) FROM  customer WHERE last_name = 'Goldman'; 
  
LEFT(LAST_NAME),4) 
------------------ 
Gold 
  
1 record selected 

Notes

Compatibility

ODBC compatible


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095